package p.a5;

import gdp.stdlib.StdDraw;

public class App {
	public static void main(String[] args) {

		int n = Integer.parseInt(args[0]); // Anzahl der auszugebenen Vielecke

		double myscale = 5.0; // Groesse der Zeichenebene in alle Richtungen

		Angle delta = new Angle(360. / n);
		Angle phi = new Angle(0.0);

		Point pos = new Point(3., 0);

		StdDraw.setXscale(-myscale, myscale);
		StdDraw.setYscale(-myscale, myscale);

		for (int i = 3; i < (3 + n); i++) {
			new Isogon(i).rotate(phi).translate(pos.rotate(phi)).draw();
			phi = phi.add(delta);
		}

		StdDraw.show();
	}
}